package com.example.woke;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.app.Activity;
import android.content.Intent;

import com.zhongcai.online.R;

public class MoneyonlineActivity extends Activity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_moneyonline);
		
		intview();
		
	}

	private void intview() {
		
		findViewById(R.id.avonline_image_back).setOnClickListener(this);
		findViewById(R.id.avonline_relative_normal1).setOnClickListener(this);
		findViewById(R.id.avonline_relative_normal2).setOnClickListener(this);
		findViewById(R.id.avonline_relative_normal3).setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.avonline_image_back:
			finish();
			break;
			
		case R.id.avonline_relative_normal1:
			intent.setClass(MoneyonlineActivity.this, PersonborrAcitivity.class);
			intent.putExtra("threetype", 0);
			startActivity(intent);
			break;
			
		case R.id.avonline_relative_normal2:
			intent.setClass(MoneyonlineActivity.this, PersonborrAcitivity.class);
			intent.putExtra("threetype", 1);
			startActivity(intent);
			break;
			
		case R.id.avonline_relative_normal3:
			intent.setClass(MoneyonlineActivity.this, PersonborrAcitivity.class);
			intent.putExtra("threetype", 2);
			startActivity(intent);
			break;

		default:
			break;
		}
	}
}
